package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.mc.Passenger;
import com.ybkj.daijia.server.model.HelpPayRecord;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhyu
 * @date 2019/5/9 11:35 desc:
 */

public interface DriverHelppayRecordMapper {

    int insert(HelpPayRecord record);

    List<HelpPayRecord> getListByTime(@Param("before") Date before, @Param("after") Date after,
        @Param("operateType") Integer type,
        @Param("paymentRecordId") Long paymentRecordId);

    HelpPayRecord getOne(long id);

    int delete(long id);

    List<HelpPayRecord> getListByDriverId(@Param("start") String start, @Param("end") String end,
        @Param("driverId") Long driverId);

    List<Map<String, Object>> getListByDriverId2(@Param("start") Date start, @Param("end") Date end,
        @Param("driverId") Long driverId);

    Long count(@Param("start") String start, @Param("end") String end,
        @Param("driverId") Long driverId);

    List<Passenger> test();
}